package com.sh.data.engine.domain.integration.offline.model.domain;

import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

/**
 * @author binghe.yxh
 */
@Data
@Builder(toBuilder = true)
public class OfflineSyncTableDomain {

    // "0-表 1-视图"
    private TblType tblType;

    // 表名或者视图名
    private String tableName;

    private String schema;

    private String detailedTblName;

    // 是否分区
    private Boolean isPartition;

    @Tolerate
    public OfflineSyncTableDomain() {
    }

    public enum TblType {
        /**
         * 内表
         */
        MANAGED_TABLE,
        /**
         * 外表
         */
        EXTERNAL_TABLE,
        /**
         * 视图
         */
        VIEW
    }
}
